<?php

?>
<div class="hidden" id="addApp-cont">
    <form class="well form-inline margin-horisontal login" action="" method="POST" name="addAppForm" id="addAppForm">
        <fieldset>

            <input type="hidden" name="action" id="action" value="<?php echo ACTIONS::INSTALL_ADD_APP; ?>">

            <div class="control-group">
                <label class="control-label" for="appname">Название</label>
                <div class="controls">
                    <input type="text" class="input-xlarge" id="appname" name="appname" value="<?php echo Arr::getValue($params, 'appname', ''); ?>">

                </div>
            </div>
            <div class="form-actions">
                <button type="submit" class="btn btn-primary" id="addApp-submit"><i class="icon-ok icon-white"></i> Сохранить</button>
                <button type="reset" class="btn btn-danger" id="addApp-cancel"><i class="icon-remove icon-white"></i> Отменить</button>
            </div>
        </fieldset>
    </form>
</div>
<script>





    $(function() {
        Elm.addApp = $('#addApp-cont');
        Elm.addAppForm = $('#addAppForm');

        $('#addApp-cancel').click(function(){
            Elm.addApp.dialog('close');
            return false;
        });
    });


</script>